package com.shop.admin.service;

import com.shop.Result.LdbzResult;
import com.shop.pojo.LdbzAdminAuth;
import org.springframework.stereotype.Service;

@Service
public interface AdminAuthService {
    LdbzResult selectUserByRole(Long roleId , int pn , int limit , String realName);
    LdbzResult selectMenuByRole(Long roleId , int pn , int limit , String menuName);
    LdbzResult deleteByUser(Long userId , Long roleId);
    LdbzResult deleteByMenu(Long menuId , Long roleId);
    LdbzResult insertByMenu(LdbzAdminAuth entity);
    LdbzResult insertByUser(LdbzAdminAuth entity);
    LdbzResult getUserByNameOrAccount(String queryKey);
    LdbzResult getResByNameOrUrl(String queryKey);
}
